package com.youkeda.app.dao;

import com.youkeda.app.dataobject.PersonalRecordDO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PersonalRecordDAO {
    int deleteByPrimaryKey(Long id);

    int insert(PersonalRecordDO record);

    int insertSelective(PersonalRecordDO record);

    PersonalRecordDO selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(PersonalRecordDO record);

    int updateByPrimaryKey(PersonalRecordDO record);

    List<PersonalRecordDO> selectAll(@Param("limit") Long limit);

    Long selectRankIndex(Long userId);

    Integer delete(Long userId);
}